import request from '@/utils/request'

// 查询题组与试卷设置列表
export function listPaperConfigGroup(query) {
  return request({
    url: '/examination/paperConfigGroup/list',
    method: 'get',
    params: query
  })
}

// 查询题组与试卷设置详细
export function getPaperConfigGroup(paperConfigGroupId) {
  return request({
    url: '/examination/paperConfigGroup/' + paperConfigGroupId,
    method: 'get'
  })
}

// 新增题组与试卷设置
export function addPaperConfigGroup(data) {
  return request({
    url: '/examination/paperConfigGroup',
    method: 'post',
    data: data
  })
}

// 修改题组与试卷设置
export function updatePaperConfigGroup(data) {
  return request({
    url: '/examination/paperConfigGroup',
    method: 'put',
    data: data
  })
}

// 删除题组与试卷设置
export function delPaperConfigGroup(paperConfigGroupId) {
  return request({
    url: '/examination/paperConfigGroup/' + paperConfigGroupId,
    method: 'delete'
  })
}
